﻿using System;
using MoonSharp.Interpreter;

// Token: 0x020002B1 RID: 689
public class ActionCompleteEvent : IEvent
{
	// Token: 0x06000F38 RID: 3896 RVA: 0x0007401F File Offset: 0x0007221F
	public ActionCompleteEvent(Humanoid agent, AgentAction action)
	{
		this.agent = agent;
		this.action = action;
		this.code = EventCode.OnActionComplete;
	}

	// Token: 0x06000F39 RID: 3897 RVA: 0x00074040 File Offset: 0x00072240
	public override DynValue GetLuaData()
	{
		if (this.data == null)
		{
			this.data = DynValue.NewPrimeTable();
			this.data.Table.Set("agent", DynValue.FromObject(null, this.agent.GetLuaEntity()));
			this.data.Table.Set("action", DynValue.FromObject(null, this.action.name));
		}
		return this.data;
	}

	// Token: 0x0400142D RID: 5165
	private Humanoid agent;

	// Token: 0x0400142E RID: 5166
	private AgentAction action;
}
